package com.trinh.utils.crypto.config;

/**
 * @Author: TrinhRae
 * @Package: com.trinh.utils.crypto
 * @Project: generaltools
 * @Date: 2025/6/20 12:52
 */
public class KeyConfig {
    // 通用密钥（对称加密）
    private String secretKey;

    // 公钥（非对称加密）
    private String publicKey;

    // 私钥（非对称加密）
    private String privateKey;

    // 偏移量
    private String iv;

    // 盐
    private String salt;


    public KeyConfig() {
    }

    public static KeyConfig builder() {
        return new KeyConfig();
    }

    public String getSalt() {
        return salt;
    }

    public KeyConfig setSalt(String salt) {
        this.salt = salt;
        return this;
    }

    public String getIv() {
        return iv;
    }

    public KeyConfig setIv(String iv) {
        this.iv = iv;
        return this;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public KeyConfig setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
        return this;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public KeyConfig setPublicKey(String publicKey) {
        this.publicKey = publicKey;
        return this;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public KeyConfig setSecretKey(String secretKey) {
        this.secretKey = secretKey;
        return this;
    }
}
